<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>AutomaticBackups</title>
    <link href="../templates/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
    <div id="nav"> 
        <h1 id="sitename"><a href="#">Sublime Text Wiki</a></h1> 
        <ul id="menu"> 
            <li class="active"><a href="../index.html" title="Home" accesskey="h"><span>H</span>ome</a></li> 
            <li><a href="../pages/This-site.html" title="About" accesskey="b"><span>A</span>bout</a></li>
            <li><a href="../pages/Documents.html" title="Documents" accesskey="c"><span>D</span>ocuments</a></li> 
        </ul> 
    </div>

    <div id="wrap">

        <div id="header">
        </div>

        <div id="topbar"> 
            <ul class="breadcrumb"> 
                <li>You Are Here &raquo;</li> 
                <li>sublimetextwiki.com &raquo; Packages &raquo; <a href="http://sublime-text-community-packages.googlecode.com/svn/pages/AutomaticBackups.html">AutomaticBackups</a></li> 
            </ul>
        </div>

        <div id="content">
            <div class="post">

                <div class="postheader">
                    <h2>The AutomaticBackups Plugin</h2>
                </div>

                <p>"Automatic Backups" is a plugin by SteveCooper. 
</p>
<p>When you edit text files (scripts, prose, whatever) you often find yourself wishing for an older version. Ever accidentally deleted a chunk from an important configuration file, or wished you could roll back a document a few hours? This plugin takes a copy of every file you save and copies it into a backup directory structure, ensuring that you never lose an old version of the file. 
</p>
<p>Once installed, any file you save will be copied into your documents folder, eg <code>&lt;My Documents&gt;\Sublime Text Backups</code>. For example, if you change <code>c:\autoexec.bat</code>, you'll get a backup saved to:
</p>
<pre><code>c:\Documents and Settings\yourUserName\Sublime Text Backups\c-drive\autoexec-2008-03-22-22-22-46.bat
</code></pre><p>That end bit is the timestamp, so you can see when the file was edited.
</p>
<p>If you want to back up your files somewhere other than your documents folder, you can add an option. To change where all backups are made, open the <code>Preferences</code> menu and choose <code>Preferences</code>. Then double-click <code>Application</code>, and add a line like this to the end of the file;
</p>
<pre><code>backupDir c:\my files\archive\
</code></pre><p>To see if it's working, open the console with the <code>View</code> | <code>Console</code> menu item. When you save a file, you should see a line like this, indicating that the file has been backed up;
</p>
<pre><code>Automatic backup: backing up to d:\backups\C-drive\Documents and Settings\steve\Application Data\Sublime Text\Packages\User\AutomaticBackupsPlugin-2008-03-22-22-22-46.py
</code></pre>

                <div class="clear"> &nbsp; </div> 

                <h2>To Install This Plugin</h2>

                <ol>
                    <li>download the <a href="http://sublime-text-community-packages.googlecode.com/svn/packages/AutomaticBackups.sublime-package ">AutomaticBackups Plugin</a> to your local hard-drive.</li>
                    <li>double-click the package file</li>
                    <li>restart Sublime Text</li>
                </ol>

                <h2>For Developers</h2>

                <ul>
                    <li>This source code for this plugin is available at <a href="http://sublime-text-community-packages.googlecode.com/svn/trunk/AutomaticBackups">google code.</a></li>
                    <li>Google provides <a href="http://code.google.com/p/sublime-text-community-packages/source/checkout">instructions for checking out the code</a></li>
                </ul>
            </div>
        </div>
        
        <div id="footerlinks"> 
            <ul id="footernav"> 
                <li><a href="../index.html" title="Home" accesskey="h"><span>H</span>ome</a></li> 
                <li><a href="../pages/This-site.html" title="About" accesskey="b"><span>A</span>bout</a></li> 
                <li><a href="../pages/Packages.html" title="Packages" accesskey="a"><span>P</span>ackages</a></li> 
            </ul> 
        </div>
        
        <div id="bottom">
            <p>Sublime Text Wiki &copy; All rights reserved | Valid XHTML</p>
            <!-- Do not alter or delete this from the template ================================================ -->  
            <p class="credit"><a href="http://www.ramblingsoul.com" title="Download Free CSS Website Templates">CSS Template</a> By RamblingSoul</p> 
            <!-- ============================================================================================== --> 
        </div>

    </div>

</body>

</html>
